document.addEventListener('DOMContentLoaded', () => {
    // 添加按键事件监听
    document.addEventListener('keypress', (e) => {
        if (e.key === 'Enter' && !document.getElementById('login-form').classList.contains('hidden')) {
            authModule.login();
        }
    });
}); 